$package('jeecg.p2pTdWhiteList');
jeecg.p2pTdWhiteList = function(){
	var _box = null;
	var _this = {
		config:{
			event:{
				add:function(){
					$('#typeIds_combobox').combobox('reload');
					_box.handler.add();
				},
				edit:function(){
					$('#typeIds_combobox').combobox('reload');
					_box.handler.edit();
				}
			},
  			dataGrid:{
  				title:'白名单列表',
	   			url:'dataList.do',
	   			columns:[[
					{field:'id',checkbox:true},
					{field:'phone',title:'手机',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.phone;
							}
						},
					{field:'name',title:'姓名',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.name;
							}
						},
					{field:'bank_name',title:'银行卡名称',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bank_name;
							}
						},
					{field:'bank_num',title:'卡号',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bank_num;
							}
						},
					{field:'bank_id',title:'银行卡id',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bank_id;
							}
						},
					{field:'money',title:'当前月限额',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.money;
							}
						},
					{field:'create_date',title:'创建时间',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.create_date;
							}
						},
					{field:'update_date',title:'修改时间',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.update_date;
							}
						},
					{field:'data_status',title:'状态 ：1 有效  2无效',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.data_status;
							}
						},
					{field:'bak1',title:'备用字段',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bak1;
							}
						},
					{field:'bak2',title:'备用字段',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bak2;
							}
						},
					{field:'bak3',title:'备用字段',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bak3;
							}
						},
					]]
			}
		},
		init:function(){
			_box = new YDataGrid(_this.config); 
			_box.init();
		}
	}
	return _this;
}();

$(function(){
	jeecg.p2pTdWhiteList.init();
});